package oldtest;

import gui.*;

import java.awt.event.ActionEvent;
import java.awt.event.ItemEvent;

import boardgame.Board;

import gui.GListener;

public class NewGameListener extends GListener {
	
	public NewGameListener(BoardGUI gui, Board board){
		super(gui, board);
	}
	
	protected String updateModel(ActionEvent e) {
		((TicTacToeTest)board).clearBoard();		
		return "";
	}

	protected void updateGUI(ActionEvent e, String valid) {
		gui.reset();
	}
	
	protected String updateModel(ItemEvent e) {
		return null;		
	}
	
	protected void updateGUI(ItemEvent e, String valid) {
		
	}

}
